/***************************************
	文件：ButtonCustomText.cs
	作者：林文豪
	日期：2021-05-09
	功能：1、
****************************************/
using System;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;

namespace Kernel.CustomUI {
    public class ButtonCustomText : Button {
        public string Content = "GoalName";
        public bool   BestFit = true;

        private Text TextContent;

        protected override void Start() {
            base.Start();
            TextContent                      = this.GetComponentInChildren<Text>();
            TextContent.text                 = Content;
            TextContent.resizeTextForBestFit = BestFit;
        }
    }
}
